c program to print a string multiple times